import { Component, OnInit, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss'],
})
export class AppComponent implements OnInit, OnDestroy {

  private title = '钱包';
  private titleKey: string;

  private subscriptions: Subscription[];

  

  constructor(
  ) {
    this.subscriptions = [];
  };
  

  ngOnInit() {
   
  };
    
  ngOnDestroy(): void {
    if (this.subscriptions && this.subscriptions.length) {
      this.subscriptions.forEach(subscription => subscription.unsubscribe);
    }

    this.subscriptions = [];
  }
}
